<?php

namespace app\model\archives_model;

use app\BaseModel;
use app\common\Message;
use think\model\relation\HasMany;

class UserArchiveTypeModel extends BaseModel
{
    use Message;
    protected $name = 'user_archive_type';

    /**
     * 关联自定义模块表
     * @return HasMany
     */
    public function templates(): HasMany
    {
        return $this->hasMany(UserArchiveTemplateModel::class,'type_id');
    }
}